package com.jkl.service.garbage;


import com.jkl.dao.garbage.QueryGarbageMapper;
import com.jkl.entity.garbage.Garbage;
import com.jkl.service.garbage.inter.QueryGarbageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zyd
 * @date: 2020-12-31-15:20
 * @description:
 * @Params:
 * @return:
 */
@Service
@Slf4j
public class QueryGarbageServiceImpl implements QueryGarbageService {

    @Autowired
    QueryGarbageMapper queryGarbageMapper;
    @Override
    public List<Garbage> queryGarbage(String gName) {
        List<Garbage> garbage = queryGarbageMapper.queryGarbage(gName);
        return garbage;
    }

}
